<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="Admin/webroot/css/style.css"/>
<title>照片管理</title>
</head>
<script type="text/javascript" src="Admin/webroot/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="Admin/webroot/js/global.js"></script>
<script type="text/javascript" src="Admin/webroot/js/input.js"></script>
<body>
<!--[if lte IE 6]>
<script src="js/DD_belatedPNG_0.0.8a.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript">
	DD_belatedPNG.fix('.pngfix');
</script>
<![endif]-->
<div class="rightbox">
    	<div class="rightbox-col" id="rightbox">
        	<div class="main">
                 {include file='../Common/main_title.html'}
                <div class="bd">
                	<div class="height_20"></div>
                    <a href="index.php?g=admin&m=photo&a=add_photo&album_id={$album_id}" class="add-pro">添加相片</a>
                    <div class="s-select-c" style="z-index:1;">
                                        		<input disabled="disabled" type="text" autocomplete="off" name="parent_name" {if $art.cat_name}value="{$art.cat_name}"{else}value="栏目筛选"{/if} class="s-select add-pro"/>
                                                <div class="s-select-menu"  style="z-index:1">
                                                	<ul>
          {foreach from=$cat_list item=list}                                          	<li data-select="{$list.id}"><a href="javascript:;"  onclick="hy_sort('c',{$list.id})">{$list.name}</a></li>
                                                        {/foreach}                                                </ul>
                                                </div>
                                                <input type="hidden" class="fmenu" name="cat_id" value="{$art.cat_id|default:0}" />
                                            </div>
                    <div class="height_20"></div>
                    <div class="pro-list">
                        <div class="pro-list-title">
                            <ul>
                                <li class="pro-id">ID</li>
                                <li class="column-name">名称</li>
                                <li class="column-name">栏目</li>
                                <li class="column-sort">排序</li>
                                <li class="opreate">操作</li>
                            </ul>
                        </div>
                        <div class="pro-list-bd">
                         {foreach from=$photo_list item=art}
							<ul>
                                <li class="pro-id"><input type="checkbox" name="chklist" value="{$art.id}"/>{$art.id}</li>
                                <li class="column-name">{$art.title}</li>
                                <li class="column-name">{$art.name}</li>
                                <li class="column-sort"><input type="text" order_id='{$art.id}' onblur="ordering(this,'photo','photo_order')" class="pro-sort-input" value="{$art.ordering}" /></li>
                                <li class="opreate">
                                	<a href="index.php?g=admin&m=photo&a=edit_photo&id={$art.id}">编辑</a> |
                                 
                                    <a onclick="del_this(this,'index.php?g=admin&m=photo&a=del_photo&id={$art.id}')" href="javascript:void(0)">删除</a> |
                                   
                                   
                                </li>
                            </ul>
                      {/foreach} 
                           
                        </div>
                        <div class="pro-list-bottom">
                        	<div class="select-a"><input type="checkbox" flag="0" onclick="select_all(this)" value=""/>全选</div>
                            <a href="javascript:void(0)" onclick="del_all('photo','del_photo')" class="del">删除</a>
                            <div class="page">{$photo_page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</body>
</html>
